package edu.sctu.wangxiaoqiang.day20150524.texttwo;

/**
 * Created by user25 on 2015/5/24.
 */
public class Literature_book extends Book{

    public Literature_book(int bookpage, float discount) {
        super(bookpage, discount);
    }

    @Override
    void show() {
        System.out.println("this book's kind is science ");
    }

    @Override
    double getPrice(int bookpage, float discount) {
        return bookpage*0.08*discount;
    }
}
